MkHtmlBlock
PyMdown-based Html block. Can be used to show raw content.¶
Example: Regular¶
Name | Children | Inherits |
---|---|---|
MkBlock mknodes.basenodes.mkblock PyMdown-based block. |
graph TD
94420312301904["mkhtmlblock.MkHtmlBlock"]
94420312300128["mkblock.MkBlock"]
94420312299136["mkcontainer.MkContainer"]
94420313076768["mknode.MkNode"]
94420313236736["node.Node"]
140608527347936["builtins.object"]
94420312300128 --> 94420312301904
94420312299136 --> 94420312300128
94420313076768 --> 94420312299136
94420313236736 --> 94420313076768
140608527347936 --> 94420313236736
/home/runner/work/mknodes/mknodes/mknodes/basenodes/mkhtmlblock/metadata.toml
[metadata]
icon = "octicon:code-16"
name = "MkHtmlBlock"
[requirements.extension."pymdownx.blocks.html"]
[examples.regular]
title = "Regular"
jinja = """
{{ "Different types." | MkHtmlBlock("div") }}
"""
[output.markdown]
template = """
{{ node.fence_boundary }} html{% if node.argument %}{{ node.argument | add(prefix=' | ')}}{% endif %}
{{ node.attributes_block }}
{{ node.content_block }}{{ node.fence_boundary }}
"""